package com.mlc.core.service;

import com.mlc.data.entity.Songs;

import java.util.List;

/**
 * @author FireWang
 * @date 2022/03/14 02:46:45
 */
public interface SongsService {

    /**
     * 获取所有列表
     *
     * @return
     * @throws Exception
     */
    List<Songs> getAll() throws Exception;

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
     Songs getById(Integer id) throws Exception;

    /**
     * 新建
     *
     * @param songs
     * @return
     */
    void insert(Songs songs) throws Exception;

    /**
     * 更新
     *
     * @param songs
     * @return
     */
    void update(Songs songs) throws Exception;

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    void deleteById(Integer id) throws Exception;
}